using micromsg;
using MicroMsg.Common.Utils;
using MicroMsg.Protocol;
using MicroMsg.Scene;
using System;
namespace MicroMsg.Plugin.DriftBottle.Scene
{
	public class NetSceneDelBottle : NetSceneBaseEx<DelBottleRequest, DelBottleResponse, DelBottleRequest.Builder>
	{
		private const string TAG = "NetSceneDelBottle";
		public bool doScene(string bottleInfo)
		{
			base.beginBuilder();
			this.mBuilder.BaseRequest = NetSceneBase.makeBaseRequest(0);
			this.mBuilder.BottleInfo = bottleInfo;
			this.mSessionPack.mCmdUri = "/cgi-bin/micromsg-bin/deletebottle";
			this.mSessionPack.mConnectMode = 2;
			base.endBuilder();
			return true;
		}
		protected override void onFailed(DelBottleRequest request, DelBottleResponse response)
		{
			Log.smethod_1("NetSceneDelBottle", "Delete bottle failed system error!");
		}
		protected override void onSuccess(DelBottleRequest request, DelBottleResponse response)
		{
			if (response == null || response.BaseResponse.Ret != 0)
			{
				Log.smethod_1("NetSceneDelBottle", "Delete bottle response not invalidate response.BaseResponse.Ret = " + ((RetConst)response.BaseResponse.Ret).ToString());
			}
		}
	}
}
